Skip to content

Conversation

@lequangnamsoraly2009
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Sep 14, 2021

❌ Deploy Preview for vi-reactjs-org failed.

🔨 Explore the source changes: bb8cb15

🔍 Inspect the deploy log: https://app.netlify.com/sites/vi-reactjs-org/deploys/6141852ed24c0a00078633f9

---

You can test React components similar to testing other JavaScript code.
Bạn có thể kiểm tra các React component tương tự như việc kiểm tra những code Javascript khác.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Từ "test" có thể giữ nguyên bạn nhé.

Bạn có thể kiểm tra các React component tương tự như việc kiểm tra những code Javascript khác.

There are a few ways to test React components. Broadly, they divide into two categories:
Có một số cách để testing các React component. Nói chung, chúng được chia thành 2 thành phần:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

categories -> 2 loại có vẻ hợp lý hơn nè

* **Rendering component trees** in a simplified test environment and asserting on their output.
* **Running a complete app** in a realistic browser environment (also known as “end-to-end” tests).
* **Rendering component trees** trong một môi trường test được đơn giản hóa và khẳng định trên kết quả đầu ra của chúng.
* **Running a complete app** trong một môi trường trình duyệt thực tế (hay còn được gọi là “end-to-end” tests).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Những từ trong ** là in đậm, bạn giúp mình dịch luôn nhé.

@Ryan-LT Ryan-LT merged commit 62965fe into reactjs:main Sep 15, 2021
@Ryan-LT Ryan-LT mentioned this pull request Sep 15, 2021
95 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants